import request from "@/utils/request";

// 订单查询
export function getMesOrderInfo(params) {
  return request({
    url: "/mes/order/getMesOrderInfo",
    method: "get",
    params,
  });
}

// 订单明细查询
export function getMesOrderDetail(params) {
  return request({
    url: "/mes/order/getMesOrderDetail",
    method: "get",
    params,
  });
}
// // 品种
// private List<MesOrderBreed> mesOrderBreed;
// // 产品
// private List<MesOrderProduct> mesOrderProduct;
// // 内文
// private List<MesOrderNeiwen> mesOrderNeiwen;

// 订单新增
export function addMesOrderInfo(data) {
  return request({
    url: "/mes/order/addMesOrderInfo",
    method: "post",
    data,
  });
}
// 订单修改
export function editMesOrderInfo(data) {
  return request({
    url: "/mes/order/editMesOrderInfo",
    method: "post",
    data,
  });
}
// 订单导出
export function exportMesOrder(data) {
  return request({
    url: "/mes/order/exportMesOrder",
    method: "post",
    data,
  });
}
// 订单删除
export function delMesOrderInfo(data) {
  return request({
    url: "/mes/order/delMesOrderInfo",
    method: "post",
    data,
  });
}
// 订单作废
export function updateStatus(data) {
  return request({
    url: "/mes/order/updateStatus",
    method: "post",
    data,
  });
}
// 生成出版编号
export function getBookNo(params) {
  return request({
    url: "/mes/order/bookNo",
    method: "get",
    params,
  });
}

